package wanyi.createIndex.test;

import org.junit.Test;

public class HelloLuceneDemo {

	/**
	 * @param args
	 */
	@Test
	public void testIndex ()
	{
		HelloLucene hl = new HelloLucene ();
		hl.index();
	}
	
	@Test
	public void testSearch ()
	{
		HelloLucene hl = new HelloLucene ();
		hl.searcher();
	}
	
	public static void main (String[] agrs)
	{
		HelloLucene hl = new HelloLucene ();
//		System.out.println("Creating Index...");
//		hl.index();
//		System.out.println("Index Created Successfully...");
		System.out.println("Searching...");
		hl.searcher();
	}
}
